<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class Condition extends Model
{
	/**
	 * 定义可批量填充字段
	 *
	 * @var array
	 * Date: 19/03/2018
	 * @author George
	 */
	protected $guarded = ['id'];

	/**
	 * 定义属性类型转换
	 *
	 * @var array
	 * Date: 25/03/2018
	 * @author George
	 */
	protected $casts = [
		'reference_one' => 'float',
		'reference_two' => 'float',
		'value' => 'float',
		'literals' => 'json'
	];
}
